package com.graplo.gwtgaefb.client;

/**
 *
 * @author Dawid Ostrowski
 *
 * Native JS helper methods
 *
 */
public class JsUtil {

	/**
	 * Checks whether dawidFBready variable has been set to true - indicating that FB SDK
	 * has been asynchronously loaded
	 * @return true when FB SDK initialized
	 */
	public static native boolean checkFBready() /*-{
		return $wnd.dawidFBready;
	}-*/;


	/**
	 * Helper method for logging to browser's console
	 *
	 * @param log - text to log in the console
	 */
	public static native void log(String log) /*-{
	    console.log(log);
	}-*/;
}
